<?php 
session_start();
header("Content-Type:text/html; charset=utf-8");
require_once 'mysql_connect.inc.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-cn" xml:lang="zh-cn">
<head>
   
	<title>简单留言板</title>

	<link rel="stylesheet" type="text/css" href="./css/moodle.css" />
	<link rel="stylesheet" type="text/css" href="./css/moodle2.css" />

	<script type="text/javascript" src="js/script.js"></script>

</head>
 
<body  class="login course-1 notloggedin dir-ltr lang-zh_cn_utf8" id="login-index"> 

	<div id="page">

		<div id="header" class="clearfix"> 
			<h1 class="headermain">简单留言板</h1> 
			<div class="headermenu">
				<div class="logininfo">
<?php 
if(!isset($_SESSION['user'])){
	echo "您尚未登录（<a href=\"login.php\">登录</a>）&nbsp;";
	echo "还没有用户名？（<a href=\"register.php\" >注册</a>）";
}
else{
	echo "您以<span id='user'>{$_SESSION['user']}</span>登录（<a href=\"logout.php\">注销</a>）";
}
?>
				</div>
			</div> 
		</div> 
